package com.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lbq
 * @version 1.0
 * @date 2021/3/13 22:56
 */
@FeignClient(name = "user-service")
public interface UserFeign {

    /**
     * 根据邮箱地址判断是否已注册
     *
     * @param email 邮箱地址
     * @return
     */
    @GetMapping("/user/isRegister/{email}")
    public String isRegister(@PathVariable("email") String email);
}
